package com.ruoyi.passenger.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passenger.mapper.TbPassengerInvoiceInfoMapper;
import com.ruoyi.passenger.domain.TbPassengerInvoiceInfo;
import com.ruoyi.passenger.service.ITbPassengerInvoiceInfoService;

/**
 * 发票信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TbPassengerInvoiceInfoServiceImpl implements ITbPassengerInvoiceInfoService 
{
    @Autowired
    private TbPassengerInvoiceInfoMapper tbPassengerInvoiceInfoMapper;

    /**
     * 查询发票信息
     * 
     * @param invoiceId 发票信息主键
     * @return 发票信息
     */
    @Override
    public TbPassengerInvoiceInfo selectTbPassengerInvoiceInfoByInvoiceId(Long invoiceId)
    {
        return tbPassengerInvoiceInfoMapper.selectTbPassengerInvoiceInfoByInvoiceId(invoiceId);
    }

    /**
     * 查询发票信息列表
     * 
     * @param tbPassengerInvoiceInfo 发票信息
     * @return 发票信息
     */
    @Override
    public List<TbPassengerInvoiceInfo> selectTbPassengerInvoiceInfoList(TbPassengerInvoiceInfo tbPassengerInvoiceInfo)
    {
        return tbPassengerInvoiceInfoMapper.selectTbPassengerInvoiceInfoList(tbPassengerInvoiceInfo);
    }

    /**
     * 新增发票信息
     * 
     * @param tbPassengerInvoiceInfo 发票信息
     * @return 结果
     */
    @Override
    public int insertTbPassengerInvoiceInfo(TbPassengerInvoiceInfo tbPassengerInvoiceInfo)
    {
        return tbPassengerInvoiceInfoMapper.insertTbPassengerInvoiceInfo(tbPassengerInvoiceInfo);
    }

    /**
     * 修改发票信息
     * 
     * @param tbPassengerInvoiceInfo 发票信息
     * @return 结果
     */
    @Override
    public int updateTbPassengerInvoiceInfo(TbPassengerInvoiceInfo tbPassengerInvoiceInfo)
    {
        return tbPassengerInvoiceInfoMapper.updateTbPassengerInvoiceInfo(tbPassengerInvoiceInfo);
    }

    /**
     * 批量删除发票信息
     * 
     * @param invoiceIds 需要删除的发票信息主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerInvoiceInfoByInvoiceIds(Long[] invoiceIds)
    {
        return tbPassengerInvoiceInfoMapper.deleteTbPassengerInvoiceInfoByInvoiceIds(invoiceIds);
    }

    /**
     * 删除发票信息信息
     * 
     * @param invoiceId 发票信息主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerInvoiceInfoByInvoiceId(Long invoiceId)
    {
        return tbPassengerInvoiceInfoMapper.deleteTbPassengerInvoiceInfoByInvoiceId(invoiceId);
    }
}
